<template>
  <uni-page-wrapper>
    <uni-page-body>
      <uni-view class="list">
        <uni-view class="item">
          <uni-view class="tit1">{{ $t("contact.To scan it") }}</uni-view>
          <uni-view class="tit2">{{ $t("contact.We will serve you wholeheartedly") }}.</uni-view>
          <uni-view class="whiteBox">
            <uni-image class="left">
              <div 
                style="
                  background-image: url('/static/img/avatar.c3a28dc5.png');
                  background-position: 0% 0%;
                  background-size: 100% 100%;
                  background-repeat: no-repeat;
                "
              >
            </div>
              <img src="/static/img/avatar.c3a28dc5.png" />
            </uni-image>
            <uni-view class="center">
              <uni-image class="icon">
                <div
                  style="
                    background-image: url('');
                    background-position: 0% 0%;
                    background-size: 100% 100%;
                    background-repeat: no-repeat;
                  "
                >
            </div>
                <img
                  src=""
                />
              </uni-image>
              <uni-image class="icon">
                <div
                  style="
                    background-image: url('');
                    background-position: 0% 0%;
                    background-size: 100% 100%;
                    background-repeat: no-repeat;
                  "
                >
            </div>
                <img
                  src=""
                />
              </uni-image>
            </uni-view>
            <uni-view class="right">
              <uni-view class="t">{{ $t("contact.Whatsapp") }}：{{whatsapp}}</uni-view>
              <uni-view class="b"> {{time}}</uni-view>
            </uni-view>
          </uni-view>
        </uni-view>
        <image class="code" :src="kfimg">
        </image>
      </uni-view>
    </uni-page-body>
  </uni-page-wrapper>
</template>

<script>
import service from '@/store/service.js'
export default {
  data(){
    return {
      whatsapp:"",
	  kfimg:'',
	  time:''
    }
  },
  mounted() {
  	service.auth(this,service.api.app_getkefu,{},function(self,res){
		self.whatsapp = res.kefu_user
		self.time = res.gztime
		self.kfimg = res.kefu_qrcode
	})
  }
};
</script>

<style>
@import url(./contact.css);
</style>